xen: credit2: do not warn if calling burn_credits more than once
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 6 Jul 2016 16:02:58 +0000 (17:02 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Fri, 8 Jul 2016 10:04:48 +0000 (11:04 +0100)
commit699afce62e772e6bdf1e1565761cf6955bfa1cce
treed12381eb456ab29a450c10cd54cf99da211af92a
parentc834707bc94e4460baf5ccf81656e9bde47c9689
xen: credit2: do not warn if calling burn_credits more than once

on the same vcpu, without NOW() having changed.

This is, in fact, a legitimate use case. If it happens,
we should just do nothing, without producing any warning
or debug message.

While there, fix style and add a couple of branching
hints.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit2.c